package com.guodi.map.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
* @描述: 功能服务表
* @作者: 郑文彬
* @日期: 2020/4/16 16:25
**/
@Getter
@Setter
@ApiModel(value="功能服务表")
public class MapFunctionServer implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键ID")
    private String id;
    @NotBlank(message = "服务名称不能为空")
    @ApiModelProperty(value = "服务名称", required = true)
    private String name;

    @ApiModelProperty(value = "服务别名")
    private String aliasName;

    @ApiModelProperty(value = "调用方式(1: http调用)")
    private String callType;

    @ApiModelProperty(value = "支持格式")
    private String supportFormat;

    @ApiModelProperty(value = "数据版本")
    private String edition;

    @ApiModelProperty(value = "更新频率")
    private String updateFrequency;

    @ApiModelProperty(value = "数据来源(机构ID)")
    private String dataSource;

    @ApiModelProperty(value = "业务领域")
    private String business;

    @ApiModelProperty(value = "行政区划")
    private String division;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "字体图标")
    private String icon;

    @ApiModelProperty(value = "接口/代理地址")
    private String serviceUrl;

    @ApiModelProperty(value = "备注摘要")
    private String remark;
    @NotNull(message = "是否共享不能为空")
    @ApiModelProperty(value = "是否共享(1:共享, 0:私有)", required = true)
    private Integer isShare;
    @ApiModelProperty(value = "图标底色")
    private String color;
    @ApiModelProperty(value = "创建人" ,hidden = true)
    private String creator;

    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    @ApiModelProperty(value = "修改人",hidden = true)
    private String modifier;

    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date modifyTime;

    @ApiModelProperty(value = "数据来源名称",hidden = true)
    @TableField(exist = false)
    private String sourceName;

    @ApiModelProperty(value = "业务领域名称",hidden = true)
    @TableField(exist = false)
    private String businessName;

    @ApiModelProperty(value = "行政区划中文名",hidden = true)
    @TableField(exist = false)
    private String divisionName;

    @ApiModelProperty(value = "API参数",hidden = true)
    @TableField(exist = false)
    List params;

    @ApiModelProperty(value = "数据来源(机构ID)名称")
    @TableField(exist = false)
    private String dataSourceName;

}
